//
//  HJDZhuTableViewCell.m
//  宝妈
//
//  Created by 胡金东 on 16/7/18.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "HJDZhuTableViewCell.h"
#import "BSMacros.h"
@implementation HJDZhuTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
    self.shiXianLbl = [[UILabel alloc]initWithFrame:CGRectZero];
    self.shiXianLbl.font = [UIFont systemFontOfSize:15];
    self.shiXianLbl.numberOfLines = 0;
    [self addSubview:self.shiXianLbl];
        
        

    }
    return self;
}




-(void)layoutSubviews
{
    CGFloat shiXianX = 15;
    CGFloat shiXianY = 10;
    CGFloat shiXianW = HJDWidth-39;
    CGRect shiXianRect = [_shiXianLbl.text boundingRectWithSize:CGSizeMake(shiXianW, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:[NSDictionary dictionaryWithObjectsAndKeys:self.shiXianLbl.font,NSFontAttributeName, nil] context:nil];
    self.shiXianLbl.frame = (CGRect){{shiXianX,shiXianY},shiXianRect.size};
   
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}




@end
